Skip to content

Add IMU_USE_SPI_ICM45686#37

Merged
qqqlab merged 10 commits intoqqqlab:mainfrom
vidma:f/add-ICM45686
Feb 25, 2025
Merged

Add IMU_USE_SPI_ICM45686#37
qqqlab merged 10 commits intoqqqlab:mainfrom
vidma:f/add-ICM45686

Conversation

@vidma
Copy link
Copy Markdown
Contributor

@vidma vidma commented Feb 19, 2025

for #35 #36

@qqqlab
Copy link
Copy Markdown
Owner

qqqlab commented Feb 19, 2025

Hey @vidma, that starts to look like something!

Please submit the MPU9250 fix as a separate PR, then we can get that one in already. Apparently WAI 0x73 is MPU9255 and 0x71 is MPU9250. Did you test with a MPU9255 ?

@vidma vidma changed the title Add IMU_USE_SPI_ICM45686; Fix MPU9250 I2C ids Add IMU_USE_SPI_ICM45686 Feb 19, 2025
@vidma
Copy link
Copy Markdown
Contributor Author

vidma commented Feb 20, 2025

⚠️ FYI: "This library does NOT support multiple instances of ICM456xx."

@vidma vidma marked this pull request as ready for review February 20, 2025 12:37
@vidma
Copy link
Copy Markdown
Contributor Author

vidma commented Feb 20, 2025

@qqqlab ready for review.

@qqqlab
Copy link
Copy Markdown
Owner

qqqlab commented Feb 24, 2025

Hi @vidma

Thanks for your hard work on this, I really appreciate it. It looks fine to me, and I'll merge it. But, as I don't have this sensor I can't test it... So ideally: fly it before we merge it :-)

Currently madflight is single IMU only, so lack of multiple instances is not an issue.

I would still prefer that you copy-paste the fixed TDK sources into this PR:

  • To get rid of a dependency which all users of madflight will have to install, but which only applies for this particular sensor
  • To prevent madflight code from breaking because of future TDK lib changes
  • To move ahead without first waiting for your PR on the TDK lib to get approved
  • To optionally trim down the pedometer, gesture, etc. crud which is not needed here

* Add motion.arduino.ICM45686 as-is

* fix

* ICM45686 lib - change includes

* motionarduino:ICM45686 lib in separate ns to prevent conflicts

* rm ICM45686 lib

* add .gitignore
@vidma
Copy link
Copy Markdown
Contributor Author

vidma commented Feb 25, 2025

To optionally trim down the pedometer, gesture, etc. crud which is not needed here

yup, indeed, we could try deleting that part of code to keep things simpler

@qqqlab qqqlab merged commit 6e076ce into qqqlab:main Feb 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants